package cn.backpackerxl.pojo;

import cn.backpackerxl.entity.Student;

import java.util.List;

/**
 * @author: backpackerxl
 * @create: 2021/12/8
 * @filename: PageStudent
 **/
public class PageStudent {
    private int totalPage;
    private int currentPage;
    private int totalStudent;
    private List<Student> studentList;

    public PageStudent() {
    }

    public PageStudent(int totalPage, int currentPage, int totalStudent, List<Student> studentList) {
        this.totalPage = totalPage;
        this.currentPage = currentPage;
        this.totalStudent = totalStudent;
        this.studentList = studentList;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public int getTotalStudent() {
        return totalStudent;
    }

    public void setTotalStudent(int totalStudent) {
        this.totalStudent = totalStudent;
    }

    public List<Student> getStudentList() {
        return studentList;
    }

    public void setStudentList(List<Student> studentList) {
        this.studentList = studentList;
    }

    @Override
    public String toString() {
        return "PageStudent{" +
                "totalPage=" + totalPage +
                ", currentPage=" + currentPage +
                ", totalStudent=" + totalStudent +
                ", studentList=" + studentList +
                '}';
    }
}
